<?php

use swap\visitor;

class my_main_nav_helper extends \swap\helper {
	
	public static function run() {
		$controller = visitor::get_controller_name();
		$main_nav_list = array(
			array('name' => '我的智联', 'url' => url('my-user/index'), 'current' => ($controller === 'user')),
			array('name' => '简历管理', 'url' => url('my-resume/index'), 'current' => ($controller === 'resume')),
			array('name' => '搜索与订阅', 'url' => url('my-resume/index'), 'current' => ($controller === 'index')),
			array('name' => '职位收藏夹', 'url' => url('my-resume/index'), 'current' => ($controller === 'index')),
			array('name' => '申请与反馈', 'url' => url('my-resume/index'), 'current' => ($controller === 'index')),
			array('name' => '薪酬报告', 'url' => url('my-resume/index'), 'current' => ($controller === 'index')),
			array('name' => '职业测评', 'url' => url('my-resume/index'), 'current' => ($controller === 'index')),
			array('name' => '增值服务', 'url' => url('my-resume/index'), 'current' => ($controller === 'index')),
		);
		self::set('main_nav_list', $main_nav_list);
		
		self::render();
	}
	
}